package teste.br.senacrs.modelo;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import br.senacrs.modelo.Heroi;
import br.senacrs.modelo.Personagem;

public class PersonagemTest {

    private Personagem novo;
    
    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
    }

    @AfterClass
    public static void tearDownAfterClass() throws Exception {
    }

    @Before
    public void setUp() throws Exception {
        novo = new Heroi();
        novo.setNome("Heroi");
        novo.setArmadura(10);
        novo.setPocao(10);
        novo.setVidaMax(10);
        novo.setVidaAtual(10);
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void test() {
        assertEquals("Heroi", novo.getNome());
        assertEquals(10, novo.getArmadura());
        assertEquals(10, novo.getPocao());
        assertEquals(10, novo.getVidaMax());
        assertEquals(10, novo.getVidaAtual());
    }

}
